Skip to content

feat(ui): simplify session detail sidebar layout#19

Merged
Helmi merged 1 commit intomainfrom
feature/td-26d768-session-detail
Mar 1, 2026
Merged

feat(ui): simplify session detail sidebar layout#19
Helmi merged 1 commit intomainfrom
feature/td-26d768-session-detail

Conversation

@Helmi
Copy link
Owner

@Helmi Helmi commented Feb 26, 2026

Summary

  • Remove redundant status badge ('Working', 'Idle') - dot color already conveys status
  • Remove agent label text ('Codex CLI') - icon already shows agent type
  • Remove 'LOCATION' section header - unnecessary visual weight
  • Remove folder icon + project name line - path is sufficient
  • Keep branch name + path with copy-to-clipboard

Result

More compact sidebar with essential info immediately visible.

Before: Status dot + icon + name → badge + agent label → 'LOCATION' header → folder + branch + path
After: Status dot + icon + name → branch + path

Closes: td-26d768

- Remove redundant status badge ('Working', 'Idle') - dot color already conveys status
- Remove agent label text ('Codex CLI') - icon already shows agent type
- Remove 'LOCATION' section header - unnecessary visual weight
- Remove folder icon + project name line - path is sufficient
- Keep branch name + path with copy-to-clipboard

Result: More compact sidebar with essential info immediately visible.

Closes: td-26d768
@gemini-code-assist
Copy link

Summary of Changes

Hello @Helmi, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request streamlines the session detail sidebar layout by eliminating superfluous UI components and consolidating information. The changes aim to create a more compact and visually efficient display, ensuring that essential session details are immediately visible without unnecessary clutter.

Highlights

  • Redundant UI elements removed: The status badge ('Working', 'Idle') was removed as the status dot color already conveys the session status. The agent label text ('Codex CLI') was also removed because the agent icon sufficiently indicates the agent type.
  • Layout simplification: The 'LOCATION' section header was removed to reduce visual weight. The folder icon and project name line were also removed, as the path itself provides sufficient information.
  • Essential information retained: The branch name and path, along with the copy-to-clipboard functionality, were retained to ensure critical location details remain accessible.
Changelog
  • client/src/components/ContextSidebar.tsx
    • Removed statusLabels import and currentProject from component props.
    • Eliminated the agentLabel variable, relying solely on the agent icon for identification.
    • Removed the status badge and agent label display from the session info section.
    • Removed the 'Location' section header and the project name with its associated folder icon.
    • Adjusted styling for the session info header area, changing space-y-2 to space-y-3.
    • Refactored the display of branch name and session path into a more compact 'Compact location info' section, retaining copy-to-clipboard functionality.
Activity
  • No specific activity has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request successfully simplifies the session detail sidebar layout by removing redundant UI elements as described. The changes effectively reduce visual clutter, making essential information more immediately visible. All modifications, including the removal of statusLabels, Folder icon, currentProject usage, and the agentLabel variable, are consistent with the stated goals of the pull request. The minor adjustments to spacing (space-y-2 to space-y-3 and space-y-1.5) are appropriate for the refined layout. No functional issues, performance bottlenecks, or security vulnerabilities were introduced.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f09b64ea24

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

{/* Session Info - Header area with status dot, icon, and name */}
<div className="space-y-3">
<div className="flex items-center gap-2 min-w-0">
<StatusIndicator status={mapSessionState(session.state)} size="md" />

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve textual session status in sidebar header

The new header now exposes session state only through the colored StatusIndicator dot, which removes the non-color cue that was previously present via the status badge text. In scenarios with color-vision deficiency, low-contrast themes, or screen-reader navigation, users can no longer reliably distinguish idle vs working vs waiting_input from this view, so this is a usability/accessibility regression introduced by the layout simplification.

Useful? React with 👍 / 👎.

@claude
Copy link

claude bot commented Feb 26, 2026

Code Review

Clean, focused PR. The diff achieves its goal well. The sidebar is more compact and the important info (status dot, icon, branch, path) is still immediately visible.

Positives

  • Dead imports removed correctly (statusLabels, Folder, currentProject)
  • agentLabel variable removed cleanly since it is now unused
  • Copy-to-clipboard tooltip and branch styling (main worktree bold yellow) preserved correctly
  • Comment on line 47 updated to reflect the new narrower purpose

Issues / Things to consider

Accessibility concern (medium) Status is now communicated only via dot color. Screen readers and color-blind users have no text equivalent. The StatusIndicator component likely does not carry an aria-label. Consider adding an aria-label or title prop to the status dot that surfaces the text status string (e.g. 'Status: Working').

Leftover blank line (nit) After removing agentLabel there is a trailing blank line around line 51 in the resulting file. Minor but visible in diffs.

Lost project context currentProject is removed and the project name row is gone. For single-project setups this is fine, but once multi-project support lands (GlobalSessionOrchestrator is already in the codebase), two sessions from different projects will look identical in the sidebar. Worth a follow-up issue, or at least keeping the data wired up so it is easy to re-surface later.

Agent identification fallback (minor) If agentIcon is undefined (no config match, no legacy match), AgentIcon renders a generic fallback. Without the label there is no text hint for which agent type this is. Low priority unless agent icons are not always distinctive enough.


Summary

Approval-worthy change. The accessibility item is worth a follow-up issue if not addressed here, and the multi-project concern is a heads-up for future work rather than a blocker. Everything else is clean.

@Helmi Helmi merged commit d7a6ba0 into main Mar 1, 2026
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant